#ifndef ALLELE_FREQUENCIES_H
#define ALLELE_FREQUENCIES_H

#include <QHash>
#include <QString>
#include <QStringList>

#include "individual.h"
#include "locus_frequency.h"
class AlleleFrequencies
{
public:
    AlleleFrequencies();

    void addIndividual( Individual *ind );
    void addPopulation( QList<Individual*> inds );

    LocusFrequency* getLocusFrequency( QString key );
    QStringList locusNames();

    inline bool hasLocus( QString key ) { return _freqs.keys().contains( key ); }


private:
    QHash<QString,LocusFrequency*> _freqs;
};

#endif // ALLELE_FREQUENCIES_H
